package com.homedo.odin.solution.service;

import com.homedo.core.common.base.service.BaseService;
import com.homedo.odin.solution.dao.ExpertProfileMapper;
import com.homedo.odin.solution.model.entity.ExpertProfile;
import org.springframework.stereotype.Service;

/**
 * <p> 专家信息 服务实现类 </p>
 *
 * @author HarveyDing
 * @since 2018-03-08
 */
@Service
public class ExpertProfileServiceImpl extends BaseService<ExpertProfileMapper, ExpertProfile> {

    public ExpertProfile getExpert(Integer userId) {
        ExpertProfile expertProfile = new ExpertProfile();
        expertProfile.setUid(userId);
        return baseMapper.selectOne(expertProfile);
    }


}
